package cn.javacv.gulimall.product.service;

import cn.javacv.gulimall.product.entity.BrandEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.javacv.gulimall.common.utils.PageUtils;
import cn.javacv.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author dingqiang
 * @email 295213096@qq.com
 * @date 2020-08-14 07:22:12
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    CategoryBrandRelationEntity saveDetail(CategoryBrandRelationEntity categoryBrandRelation);
    boolean updateBrandRelation(long brandId,String brandName);

    boolean updateCategoryRelation(long categoryId,String categoryName);

    List<BrandEntity> listBrandByCategoryId(Long catId);
}

